<?php
echo CHtml::htmlButton(
		tt('Add code'), 
		array(
			'class'=>'button grey', 
			'onclick'=>'document.location.href="'.Yii::app()->createAbsoluteUrl(
					"/seo/admin/default/updateanalytics").'"',
			'style'=>'margin-right:20px;'
			)
);
	
$this->widget('ext.groupgridview.GroupGridView', array(
	'id'=>'seosettings-grid',
	'cssFile'=>Yii::app()->theme->baseUrl.'/css/tables.css',
	'itemsCssClass'=>'item-class',
	'pagerCssClass'=>'pager-class',
	'dataProvider' => $params['dataProvider'],
	'columns' => array(
		array(
			'name' => 'placeholder',
			'sortable' => false
		),
		array(
			'class'=>'CButtonColumn',
			'template'=>'{update}{delete}',
			'deleteConfirmation' => tt('Are you sure you want to delete this item?'),
			'updateButtonUrl' => "Yii::app()->createUrl('/seo/admin/default/updateanalytics', array('placeholder' => \$data[\"placeholder\"]))",
			'deleteButtonUrl' => "Yii::app()->createUrl('/seo/admin/default/deleteanalytics', array('placeholder' => \$data[\"placeholder\"]))",
			'htmlOptions' => array('class'=>'button-column'),
			'buttons' => array(
				'update' => array(
					'imageUrl' => $url = Yii::app()->theme->baseUrl.'/images/icon_edit.png',
				),
				'delete' => array(
					'imageUrl' => $url = Yii::app()->theme->baseUrl.'/images/icon_delete.png',
				),
			),
		),
	),
));
?>